execute as @n[distance=..10,type=item,nbt={Item:{components:{"minecraft:custom_data":{id:"arrow_bundle"}}}}] run tag @s add tempItemEntity
execute as @n[distance=..10,type=item,nbt={Item:{components:{"minecraft:custom_data":{id:"arrow_bundle"}}}}] on origin run tag @s add tempItemEntityOrigin
tag @n[tag=tempItemEntity,type=item,distance=..10] add util.ItemEntityTPOwner

#Drop Arrow
execute as @n[tag=tempItemEntity,type=item,distance=..10,nbt=!{Item:{id:"minecraft:poisonous_potato"}}] if entity @p[tag=tempItemEntityOrigin] run data modify entity @s Item.components."minecraft:custom_data".drop_arrow set from entity @s Motion

data modify entity @n[tag=tempItemEntity,type=item,distance=..10] Owner set from entity @s UUID
data modify entity @n[tag=tempItemEntity,type=item,distance=..10] PickupDelay set value 0s
tag @n[tag=tempItemEntity,type=item,distance=..10] remove tempItemEntity
tag @p[tag=tempItemEntityOrigin] remove tempItemEntityOrigin